package com.gitee.pifeng.monitoring.ui.business.web.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Objects;

@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "数链详情数据")
public class VisNodeVo {

    private String id;

    private String label;

    //circularImage
    private String shape = "circularImage";

    private String color = "RGB(179,179,179)";
    private String borderWidth = "5";


    private String image = "http://datalink.smartalert.online/phoenix-ui/images/db/data.jpg";

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        VisNodeVo yourClass = (VisNodeVo) o;
        return Objects.equals(id, yourClass.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
